#include "stdafx.h"
#include  "AdwDump.h"

#include "allData.h"
#include "serializer\serializer.h"
#include "serializer\STLserializer.h"

void AdwDump::serialize(Serializer& serializer)
{

	// globals
	/*
	serializer << g_ConvoySpacing << g_RunAfterBridge << g_FuelThreshold << g_AmmoThreshold << g_MaxUnitsInGroup;
	serializer << g_GroupUnitSpacing << g_GroupUnitsLimit << g_GroupThreshold << g_SkladReserveThreshold;
	serializer << g_SkladMaxColumn << g_SkladBunkerSpacing << g_AmmoPerBunker << g_FuelPerBunker << g_RepairPerBunker;
	serializer << g_BoevkaDist << g_HWZKillDist << g_SupplyRadius << g_ReinforceRadius << g_HWZProximity;
	serializer << g_DistToAmmoSupport << g_DistToFuelSupport << g_TrainWagonSpacing << g_PoliticalMapWidth;
	serializer << g_PoliticalMapHeight << g_DistTooFarFromFrontLine << g_SpawnDistFromFronTline;
	serializer << g_ReqLifeMax << g_WaterColor << g_skladToRoadAssignRadius << g_fieldToRoadAssignRadius;
	serializer << g_TownDefenseRadius << g_CanAttackThreshold << g_MaxHWZToSend << g_SecondsPerMission;
	serializer << g_MissionTimeStart << g_MissionTimeEnd << g_staticToSkladAssignRadius << g_BunkersShiftX;
	serializer << g_BunkersShiftY << g_FenceIl2Name << g_FenceLenght << g_RoadWidth << g_WeAreInTownAssignRadius;
	serializer << g_holdFromSpawn << g_MaxWagonLength << g_WagonSpacing << g_unloadPointToSkladAssignRadius;
	serializer << g_TrainUnitsLimit << g_TrainAAAFrequency << g_RouteMirrorAssignRadius << g_log_file;
	serializer << g_log_level;
	*/

	// maps
	serializer << groups << vehicles << sklads << requests << spawnPoints;

	serializer << RGK_red << RGK_blue;

	// managers
	serializer << geoMap << requestManager << connectionManager << parser << globalIdManager;


}